var M=require("ming_node");


var app=M.server();
app.listen(8888);


sseApp=M.sseServer()
app.get("/sseServer",sseApp)



let r= M.getFileDirList("./static")
r.push("./static")
r.forEach(u=>M.watchFile(u,()=>{sseApp.send("change");}))
console.log("watch on ",r)